package com.spring.framework.model.annotation;

import org.springframework.stereotype.Component;

@Component("componentOne")
public class ComponentOne {

    public ComponentOne() {
        System.out.println("ComponentOne：" + this);
    }


    @Component("componentTwo")
    public class ComponentTwo {
        public ComponentTwo() {
            System.out.println("ComponentTwo：" + this);
        }
    }

    @Component("componentThree")
    public static class ComponentThree {
        public ComponentThree() {
            System.out.println("ComponentThree：" + this);
        }
    }
}
